classdef TestDotsQueryableHID < dotsTestCase
    
    properties
        queryable;
        classname;
    end
    
    methods
        function self = TestDotsQueryableHID(name)
            self = self@dotsTestCase(name);
        end
        
        function setUp(self)
            self.setUp@dotsTestCase;
        end
        
        function tearDown(self)
            self.tearDown@dotsTestCase;
            mexHID('terminate');
        end
        
        function testCreateCheckDestroy(self)
            if ischar(self.classname) && exist(self.classname, 'file')
                self.queryable  = feval(self.classname);
                mexHID('check');
                delete(self.queryable);
            end
        end
    end
end